import React, { ReactElement, ReactNode } from 'react'
import Router from './Router'
import { createBrowserHistory } from 'history'

export default function index({ children }: { children?: ReactElement }) {

  const history = createBrowserHistory()

  return (
    <Router history={history} >{children}</Router>
  )
}
